Skip to content

Add detection for repeated CloudWatch Logs read operations - #4288

Open
themaryjo wants to merge 8 commits into
developfrom
aws-repeated-cloudwatch-logs-read-operations
Open

themaryjo wants to merge 8 commits into
developfrom
aws-repeated-cloudwatch-logs-read-operations

Conversation

@themaryjo

Copy link
Copy Markdown
Contributor

Summary

Adds an AWS CloudTrail analytic that detects more than 500 Amazon CloudWatch Logs read operations performed by the same principal and AWS account within a rolling five-minute window.

Monitored operations

  • DescribeLogGroups
  • DescribeLogStreams
  • DownloadLogEvents
  • FilterLogEvents
  • GetLogEvents
  • GetQueryResults

Detection details

  • Groups activity by AWS principal ID and account
  • Uses a rolling five-minute window
  • Requires more than 500 matching operations
  • Maps to MITRE ATT&CK T1530
  • Uses AWS CloudTrail management read events

Testing

  • Validated with 650 unique GetLogEvents events generated in 37 seconds
  • Passed contentctl validation
  • Passed the focused contentctl unit test

Attack data

splunk/attack_data#1225

@nasbench nasbench added this to the v6.8.0 milestone Sep 24, 2026
@nasbench

nasbench commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T11:14:02.081988Z d03c68a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fbc7ec0d6b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread detections/cloud/aws_repeated_cloudwatch_logs_read_operations.yml Outdated
Comment thread detections/cloud/aws_repeated_cloudwatch_logs_read_operations.yml Outdated
@nasbench nasbench modified the milestones: v6.8.0, v6.9.0 Oct 5, 2026
@nasbench

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: d03c68ab86

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@patel-bhavin

Copy link
Copy Markdown
Contributor

@themaryjo - tested this on that instance and worked with codex to clarify a few things on the usage of evals vs relying on TAs, since these are not expensive commands - lets keep them as is!

LGTM!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants